# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Nicky726 (Nicky726 <at> gmail <dot> com)
# Contributor: Allan McRae (allan <at> archlinux <dot> org)
# Contributor: Alexander 'bas' Brovikov (bas <at> it-core <dot> org)

pkgname=wine-gecko
pkgver=2.47.4
pkgrel=1
pkgdesc="Wine's built-in replacement for Microsoft's Internet Explorer"
arch=('loong64' 'x86_64')
url="https://wiki.winehq.org/Gecko"
license=('MPL')
depends=('wine')
replaces=('wine_gecko')
provides=('wine_gecko')
source=(https://dl.winehq.org/wine/wine-gecko/$pkgver/wine-gecko-$pkgver-x86{,_64}.tar.xz)
sha512sums=('1279456eca4439e9adc3c97678fabeca42cc89f683246805ca14f85fc104bf4ba970fb6490f4ebd0938fc8e0a0ca372b000fdd5165f900070eeee30a1aeec117'
            '1defbbc1fb5029bf43872a4e1c49995b61e0f106b1fcc4c99159bf4788226981b9ba8a25a2296d3a9312dbfa7e27b469ca27c0867afb218990d45f68705dbfbe')

package() {
  install -d -m755 "$pkgdir"/usr/share/wine/gecko/
  cp -dr --no-preserve='ownership' $pkgname-$pkgver-x86{,_64} "$pkgdir"/usr/share/wine/gecko/
}
